import {request} from "../../request";

export function getCheckById(id){
    return request({
        url:`/lswms/check/${id}`,
        method:'get'
    })
}


export function getCheckPage(data){
    return request({
        url:'/lswms/check/page',
        method:'put',
        data:data
    })
}

export function putCheck(data){
    return request({
        url:'/lswms/check',
        method:'put',
        data:data
    })
}
export function postCheck(data){
    return request({
        url:'/lswms/check',
        method:'post',
        data:data
    })
}

export function deleteCheck(data){
    return request({
        url:`/lswms/check`,
        method:'delete',
        data:data
    })
}
export function exportCheck(data){
    return request({
        url:`/lswms/check/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}

// 生成盘点明细
export function createCheck(data){
    return request({
        url:'/lswms/check/createcheck',
        method:'put',
        data:data
    })
}

// 生成盘点任务
export function createCheckTask(data){
    return request({
        url:'/lswms/check/createcheckTask',
        method:'put',
        data:data
    })
}
// 盘点过账
export function createCheckPost(data){
    return request({
        url:'/lswms/check/CheckPost',
        method:'put',
        data:data
    })
}

// 盘点取消
export function cancelCheckPost(data){
    return request({
        url:'/lswms/check/cancelCheckPost',
        method:'put',
        data:data
    })
}

